import http from "@/utils/request";

// 获取门禁列表
export const getpage = async (data) => {
	return http.get<any>('/iot/face-database/page', data)
}
// 添加租客照片
export const createface = async (data) => {
	return http.post<any>('/iot/face-database/create', data)
}
// 删除人脸信息
export const removeface = async (id) => {
	return http.post<any>(`/iot/face-database/remove?id=${id}`, {})
}
// 租客人脸信息
export const facerenter = async () => {
	return http.get<any>('/iot/face-database/renter-info', {})
}
// 根据ID修改
export const faceedit = async (data) => {
	return http.post<any>('/iot/face-database/edit', data)
}
// 根据登录人id获取房间信息
export const getroomIds = async () => {
	return http.get<any>('/contract/app/get-roomIds', {})
}